package com.example.spring.design.composite.lucency;

/**
 * @author: orange
 * @create: 2023-08-20 00:00
 * @description: 特产
 */
public class Specialty extends AbstractCommodity {
    private final double price = 7.9;
    private int num;

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    double getPrice() {
        return this.price;
    }

    public int getNum() {
        return num;
    }
}